// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import 'element-ui/lib/theme-chalk/display.css'
import App from './App'
import Validate from './utils/validate.js'
import './assets/style/element-variables.scss'
import store from './store/index.js'
import router from './router'
import './assets/style/global.scss'

Vue.prototype.$validate = Validate // 注册自定义的校验器
Vue.prototype.$store = store
// Vue.prototype.$moment = moment
// moment.locale('zh-cn')
Vue.config.productionTip = false
// Vue.use(mavonEditor)

// 设置DevTools状态
const isDebugMode = process.env.NODE_ENV !== 'production'
console.log(isDebugMode ? 'DevTools已开启' : 'DevTools已关闭')
Vue.config.debug = isDebugMode
Vue.config.devtools = isDebugMode
Vue.config.productionTip = isDebugMode

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
  // store
})
